package org.gaojianqiao.electronichandbook.factory;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;
import org.gaojianqiao.electronichandbook.createtable.ElectronicHandbookTextTab;

public class TableViewPlusLaberProvider implements ITableLabelProvider
{

	@Override
	public String getColumnText(Object element, int columnIndex)
	{
		ElectronicHandbookTextTab o = (ElectronicHandbookTextTab) element;
		if (columnIndex == 0)
		{
			return o.getid().toString();
		}
		if (columnIndex == 1)
		{
			return o.gettitle();
		}
		if (columnIndex == 2)
		{
			return o.gettext();
		}
		return "";
	}

	@Override
	public void addListener(ILabelProviderListener listener)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose( )
	{
		// TODO Auto-generated method stub

	}

	@Override
	public boolean isLabelProperty(Object element, String property)
	{
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void removeListener(ILabelProviderListener listener)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public Image getColumnImage(Object element, int columnIndex)
	{
		// TODO Auto-generated method stub
		return null;
	}

}
